package com.situ.mall.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.mall.common.entity.Attachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author JavaWizard
 * @since 2023-09-15
 */
@Mapper
public interface AttachmentMapper extends BaseMapper<Attachment> {

    //保存该文件的相关数据到attachment表
    void upload(Attachment att);

    //更新附件相关数据
    void bind(@Param("ids")String[] split, @Param("sourceId")Integer id, @Param("sourceName")String source);
}
